//
//  KBaseResponedSearchCommandDTO.h
//  KutulusLaw
//
//  Created by Mahmood1 on 12/10/12.
//  Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "KBaseSearchFileDTO.h"

#define kKEY_STATUS @"status"
#define kKEY_TOTAL @"total"
#define kKEY_ROWS @"rows"

@interface KBaseResponedSearchCommandDTO : NSObject
@property (atomic) BOOL isOK;
@property (atomic) NSInteger total;
@property (nonatomic, strong) NSMutableArray *rows;

- (KBaseSearchFileDTO *)parseRow:(NSDictionary *)row;
-  (id)initWithDictionary:(NSDictionary *)dictionary;
- (NSInteger) countOfRows;
- (KBaseSearchFileDTO *) objectInRowsAtIndex:(NSUInteger)index;
@end
